<template>
  <div id="app">

    <router-view></router-view>
    <TabBar>
      <TabBarItem path='/home' >
        <img slot="item-icon" src="./assets/img/tabbar/index.svg" alt />
        <img slot="item-icon-active" src="./assets/img/tabbar/index_active.svg" alt />
        <div slot="item-text">首页</div>
      </TabBarItem>
      <TabBarItem path='/category' activeColor="yellow">
        <img slot="item-icon" src="./assets/img/tabbar/class.svg" alt />
        <img slot="item-icon-active" src="./assets/img/tabbar/class_active.svg" alt />
        <div slot="item-text">分类</div>
      </TabBarItem>
      <TabBarItem path='/cart' activeColor="red">
        <img slot="item-icon" src="./assets/img/tabbar/shopCart.svg" alt />
        <img slot="item-icon-active" src="./assets/img/tabbar/shopCart_active.svg" alt />
        <div slot="item-text">购物车</div>
      </TabBarItem>
      <TabBarItem path='/profile' activeColor="orange">
        <img slot="item-icon" src="./assets/img/tabbar/me.svg" alt />
        <img slot="item-icon-active" src="./assets/img/tabbar/me_active.svg" alt />
        <div slot="item-text">我的</div>
      </TabBarItem>
    </TabBar>

  </div>
</template>

<script>
import TabBar from "./components/tabbar/TabBar";
import TabBarItem from "./components/tabbar/TabBarItem";

export default {
  name: "App",
  components: {
    TabBar,
    TabBarItem,
  },
};
</script>

<style>
@import "assets/css/base.css";
</style>
